package com.itheima.reggie.service;


import com.itheima.reggie.common.R;
import com.itheima.reggie.entity.Employee;
import com.itheima.reggie.entity.Page;

/**
 * @Author: qingtao
 * @Date 2022/3/8 9:56
 */
public interface EmployeeService {

    /**
     * 登录
     * @param employee
     * @return
     */
    R<Employee> login(Employee employee);

    /**
     * 添加
     * @param employee
     * @return boolean
     */
    boolean save(Employee employee);

    /**
     * 分页查找
     * @param page 第几页
     * @param pageSize 页面大小
     * @param name 条件
     * @return
     */
    Page<Employee> findByPage(Integer page,Integer pageSize,String name);

    /**
     * 反查详情接口
     * @param id
     * @return
     */
    Employee queryEmployeeById(Integer id);

    /**
     * 修改
     * @param employee
     * @return
     */
    boolean update(Employee employee);
}
